package com.action.childbase;

import com.base.app_core.App;
import com.base.app_core.base.impl.BaseFragment;

import com.action.ioc.component.AppComponent;
import com.action.ioc.component.ChildViewComponent;
import com.action.ioc.module.ChildModule;
import com.base.app_core.base.impl.BasePresenter;

/**
 * Created by jiansheng.li on 2018/1/16.
 */

public abstract class ChildBaseFragment<T extends BasePresenter> extends BaseFragment<T> {
	protected ChildViewComponent getChildViewComponent() {
		return (ChildViewComponent) ((AppComponent) App.getApp().getAppComponent()).plus(getSuperModule());
	}

	protected ChildModule getSuperModule() {
		return new ChildModule(this);
	}

	@Override
	protected void setupComponent() {

	}
}
